import Vue from 'vue';

const list = (params) => {
    return Vue.prototype.$u.get('cart/list', params);
};


const action = (params) => {
    return Vue.prototype.$u.post('cart/action', params);
};


const remove = (params) => {
    return Vue.prototype.$u.delete('cart/remove', params);
};

const checkout = (params) => {
    return Vue.prototype.$u.get('cart/checkout',params)
}


export default {
    list,
    action,
    remove,
    checkout
};
